import request from '@/utils/request'

// 查询视频监控列表
export function listAfMonitoring(query) {
  return request({
    url: '/security/afMonitoring/list',
    method: 'get',
    params: query
  })
}

// 查询视频监控详细
export function getAfMonitoring(id) {
  return request({
    url: '/security/afMonitoring/' + id,
    method: 'get'
  })
}

// 新增视频监控
export function addAfMonitoring(data) {
  return request({
    url: '/security/afMonitoring',
    method: 'post',
    data: data
  })
}

// 修改视频监控
export function updateAfMonitoring(data) {
  return request({
    url: '/security/afMonitoring',
    method: 'put',
    data: data
  })
}

// 删除视频监控
export function delAfMonitoring(id) {
  return request({
    url: '/security/afMonitoring/' + id,
    method: 'delete'
  })
}
